# -*- coding: utf-8 -*-
import sys

import means

def foo(var,device):

    result = means.location_computed(var,4,device)
    resultlist = []
    for i in result:
        resultlist.append({'lon':i[1] , 'lat':i[2]})
    print(resultlist)


foo(sys.argv[1],sys.argv[2])